<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CAutoLock类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_c_auto_lock-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CAutoLock类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>智能锁调用器  
 <a href="class_c_auto_lock.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_auto_lock_8h_source.html">AutoLock.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a53a96060e841e036ffec6ba1d12f042b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_auto_lock.html#a53a96060e841e036ffec6ba1d12f042b">CAutoLock</a> (<a class="el" href="class_c_mutex_base.html">CMutexBase</a> *mutex)</td></tr>
<tr class="separator:a53a96060e841e036ffec6ba1d12f042b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29bad336842c05fc56ebea362e0812f5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_auto_lock.html#a29bad336842c05fc56ebea362e0812f5">~CAutoLock</a> ()</td></tr>
<tr class="separator:a29bad336842c05fc56ebea362e0812f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b514cca62af765afdbce145cc171380"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_auto_lock.html#a6b514cca62af765afdbce145cc171380">Lock</a> ()</td></tr>
<tr class="separator:a6b514cca62af765afdbce145cc171380"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af564ffa2835b2a75e9a4340037a792e0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_auto_lock.html#af564ffa2835b2a75e9a4340037a792e0">Unlock</a> ()</td></tr>
<tr class="separator:af564ffa2835b2a75e9a4340037a792e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:ac6f26078eaa01bbfa369da5ef35b68b2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_auto_lock.html#ac6f26078eaa01bbfa369da5ef35b68b2">delete_class_copy_operator</a> (<a class="el" href="class_c_auto_lock.html">CAutoLock</a>)</td></tr>
<tr class="separator:ac6f26078eaa01bbfa369da5ef35b68b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a61cac88ec8081f01cc936124a2d5e9a6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_mutex_base.html">CMutexBase</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_auto_lock.html#a61cac88ec8081f01cc936124a2d5e9a6">_mutex</a></td></tr>
<tr class="separator:a61cac88ec8081f01cc936124a2d5e9a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b14af1cf1258a7d4bdd216a9a84260a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_auto_lock.html#a7b14af1cf1258a7d4bdd216a9a84260a">_bLock</a></td></tr>
<tr class="separator:a7b14af1cf1258a7d4bdd216a9a84260a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>智能锁调用器 </p>
<dl class="section remark"><dt>备注</dt><dd>适用于同一个作用域内多次调用而造成的死锁 </dd></dl>

<p class="definition">在文件 <a class="el" href="_auto_lock_8h_source.html">AutoLock.h</a> 第 <a class="el" href="_auto_lock_8h_source.html#l00011">11</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a53a96060e841e036ffec6ba1d12f042b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53a96060e841e036ffec6ba1d12f042b">&#9670;&nbsp;</a></span>CAutoLock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> CAutoLock::CAutoLock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_mutex_base.html">CMutexBase</a> *&#160;</td>
          <td class="paramname"><em>mutex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_auto_lock_8cpp_source.html">AutoLock.cpp</a> 第 <a class="el" href="_auto_lock_8cpp_source.html#l00005">5</a> 行定义.</p>

</div>
</div>
<a id="a29bad336842c05fc56ebea362e0812f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29bad336842c05fc56ebea362e0812f5">&#9670;&nbsp;</a></span>~CAutoLock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CAutoLock::~CAutoLock </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_auto_lock_8cpp_source.html">AutoLock.cpp</a> 第 <a class="el" href="_auto_lock_8cpp_source.html#l00011">11</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ac6f26078eaa01bbfa369da5ef35b68b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6f26078eaa01bbfa369da5ef35b68b2">&#9670;&nbsp;</a></span>delete_class_copy_operator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CAutoLock::delete_class_copy_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_auto_lock.html">CAutoLock</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a6b514cca62af765afdbce145cc171380"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b514cca62af765afdbce145cc171380">&#9670;&nbsp;</a></span>Lock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CAutoLock::Lock </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_auto_lock_8cpp_source.html">AutoLock.cpp</a> 第 <a class="el" href="_auto_lock_8cpp_source.html#l00016">16</a> 行定义.</p>

</div>
</div>
<a id="af564ffa2835b2a75e9a4340037a792e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af564ffa2835b2a75e9a4340037a792e0">&#9670;&nbsp;</a></span>Unlock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CAutoLock::Unlock </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_auto_lock_8cpp_source.html">AutoLock.cpp</a> 第 <a class="el" href="_auto_lock_8cpp_source.html#l00025">25</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a7b14af1cf1258a7d4bdd216a9a84260a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b14af1cf1258a7d4bdd216a9a84260a">&#9670;&nbsp;</a></span>_bLock</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CAutoLock::_bLock</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_auto_lock_8h_source.html">AutoLock.h</a> 第 <a class="el" href="_auto_lock_8h_source.html#l00021">21</a> 行定义.</p>

</div>
</div>
<a id="a61cac88ec8081f01cc936124a2d5e9a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61cac88ec8081f01cc936124a2d5e9a6">&#9670;&nbsp;</a></span>_mutex</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_mutex_base.html">CMutexBase</a>* CAutoLock::_mutex</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_auto_lock_8h_source.html">AutoLock.h</a> 第 <a class="el" href="_auto_lock_8h_source.html#l00020">20</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/thread/<a class="el" href="_auto_lock_8h_source.html">AutoLock.h</a></li>
<li>H:/project/LibTools/src/thread/<a class="el" href="_auto_lock_8cpp_source.html">AutoLock.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
